import Layout from '@/layout/index.vue'

export default {
  path: '/user',
  component: Layout,
  redirect: '/user/center',
  meta: { roles: ['user'] },
  children: [
    {
      path: 'center',
      name: 'UserCenter',
      component: () => import('@/views/user/UserCenter.vue'),
      meta: { title: '个人中心' }
    },
    {
      path: 'orders',
      name: 'UserOrders',
      component: () => import('@/views/user/Orders.vue'),
      meta: { title: '我的订单' }
    },
    {
      path: 'appointments',
      name: 'UserAppointments',
      component: () => import('@/views/user/Appointments.vue'),
      meta: { title: '我的预约' }
    }
  ]
} 